home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / fade into you / being there / How To & FAQ's / security.FAQ < prev    next >
Text File  |  1994-05-15  |  49KB  |  1,158 lines

  1. Article: 4982 of alt.security
  2. Xref: lugb alt.security:4982 comp.security.misc:1003 news.answers:2627
  3. Path: lugb!ucsvc.ucs.unimelb.edu.au!ariel!munnari.oz.au!uunet!mcsun!uknet!gdt!aber!aem
  4. Newsgroups: alt.security,comp.security.misc,news.answers
  5. Subject: FAQ: Computer Security Frequently Asked Questions
  6. Message-ID: <alt.security_715351415@aber.ac.uk>
  7. From: aem@aber.ac.uk (Alec David Muffett)
  8. Date: Wed, 2 Sep 92 07:08:01 EST
  9. Sender: aem@aber.ac.uk (Alec David Muffett)
  10. Followup-To: poster
  11. Expires: Tue, 6 Oct 1992 12:43:35 GMT
  12. Organization: University of Wales, Aberystwyth
  13. Keywords: Security FAQ
  14. Summary: Answers to questions which appear in alt.security/comp.security.misc
  15. Approved: news-answers-request@MIT.Edu
  16. Supersedes: <alt.security_712529217@aber.ac.uk>
  17. Lines: 1137
  18.  
  19. Archive-name: alt-security-faq
  20. Last-modified: 1992/6/20
  21. Version: 1.4
  22.  
  23. Version History:
  24. 1.4    Fixed John Haugh's name, modified entry for "shadow"
  25.     Added Ulf Kieber's update on the rainbow series
  26.     Added bit about Karila paper
  27. 1.3:    Tweak for comp.security.misc/news.answers
  28.     Updated entry for orange book (foreign purchases)
  29. 1.2:    Undocumented prior to this
  30. ---------------------------------------------------------------------------
  31.     Almost Everything You Ever Wanted To Know About Security*
  32.                *(but were afraid to ask!)
  33.  
  34. This document is meant to answer some of the questions which regularly
  35. appear in the Usenet newsgroups "comp.security.misc" and "alt.security",
  36. and is meant to provide some background to the subject for newcomers to
  37. that newsgroup.
  38.  
  39. This FAQ is maintained by Alec Muffett (aem@aber.ac.uk, uknet!aber!aem),
  40. with contributions from numerous others [perhaps].  The views expressed
  41. in the document are the personal views of the author(s), and it should
  42. not be inferred that they are necessarily shared by anyone with whom the
  43. author(s) are now, or ever may be, associated.
  44.  
  45. Many thanks go to (in no particular order): Steve Bellovin, Matt Bishop,
  46. Mark Brader, Ed DeHart, Dave Hayes, Jeffrey Hutzelman, William LeFebvre,
  47. Wes Morgan, Rob Quinn, Chip Rosenthal, Wietse Venema, Gene Spafford,
  48. John Wack and Randall Atkinson.
  49.  
  50. Disclaimer: Every attempt is made to ensure that the information
  51. contained in this FAQ is up to date and accurate, but no responsibility
  52. will be accepted for actions resulting from information gained herein.
  53.  
  54. Questions which this document addresses:
  55.  
  56. Q.1 What are alt.security and comp.security.misc for?
  57. Q.2 Whats the difference between a hacker and a cracker?
  58. Q.3 What is "security through obscurity"
  59. Q.4 What makes a system insecure?
  60. Q.5 What tools are there to aid security?
  61. Q.6 Isn't it dangerous to give cracking tools to everyone?
  62. Q.7 Where can I get these tools?
  63. Q.8 Why and how do systems get broken into?
  64. Q.9 Who can I contact if I get broken into?
  65. Q.10 What is a firewall?
  66. Q.11 Why shouldn't I use setuid shell scripts?
  67. Q.12 Why shouldn't I leave "root" permanently logged on the console?
  68. Q.13 Why shouldn't I create Unix accounts with null passwords?
  69. Q.14 What security holes are associated with X-windows (and other WMs)?
  70. Q.15 What security holes are associated with NFS?
  71. Q.16 How can I generate safe passwords?
  72. Q.17 Why are passwords so important?
  73. Q.18 How many possible passwords are there?
  74. Q.19 Where can I get more information?
  75. Q.20 How silly can people get?
  76.  
  77. ---------------------------------------------------------------------------
  78.  
  79. Q.1 What are alt.security and comp.security.misc for?
  80.  
  81. Comp.security.misc is a forum for the discussion of computer security,
  82. especially those relating to Unix (and Unix like) operating systems.
  83. Alt.security used to be the main newsgroup covering this topic, as well
  84. as other issues such as car locks and alarm systems, but with the
  85. creation of comp.security.misc, this may change.
  86.  
  87. This FAQ will concentrate wholly upon computer related security issues.
  88.  
  89. The discussions posted range from the likes of "What's such-and-such
  90. system like?" and "What is the best software I can use to do so-and-so"
  91. to "How shall we fix this particular bug?", although there is often a
  92. low signal to noise ratio in the newsgroup (a problem which this FAQ
  93. hopes to address).
  94.  
  95. The most common flamewars start when an apparent security novice posts a
  96. message saying "Can someone explain how the such-and-such security hole
  97. works?" and s/he is immediately leapt upon by a group of self appointed
  98. people who crucify the person for asking such an "unsound" question in a
  99. public place, and flame him/her for "obviously" being a cr/hacker.
  100.  
  101. Please remember that grilling someone over a high flame on the grounds
  102. that they are "a possible cr/hacker" does nothing more than generate a
  103. lot of bad feeling.  If computer security issues are to be dealt with in
  104. an effective manner, the campaigns must be brought (to a large extent)
  105. into the open.
  106.  
  107. Implementing computer security can turn ordinary people into rampaging
  108. paranoiacs, unable to act reasonably when faced with a new situation.
  109. Such people take an adversarial attitude to the rest of the human race,
  110. and if someone like this is in charge of a system, users will rapidly
  111. find their machine becoming more restrictive and less friendly (fun?) to
  112. use.
  113.  
  114. This can lead to embarrasing situations, eg: (in one university) banning
  115. a head of department from the college mainframe for using a network
  116. utility that he wasn't expected to.  This apparently required a lot of
  117. explaining to an unsympathetic committee to get sorted out.
  118.  
  119. A more sensible approach is to secure a system according to its needs,
  120. and if its needs are great enough, isolate it completely.  Please, don't
  121. lose your sanity to the cause of computer security; it's not worth it.
  122.  
  123. Q.2 What's the difference between a hacker and a cracker?
  124.  
  125. Lets get this question out of the way right now:
  126.  
  127. On USENET, calling someone a "cracker" is an unambiguous statement that
  128. some person persistently gets his/her kicks from breaking from into
  129. other peoples computer systems, for a variety of reasons.  S/He may pose
  130. some weak justification for doing this, usually along the lines of
  131. "because it's possible", but most probably does it for the "buzz" of
  132. doing something which is illicit/illegal, and to gain status amongst a
  133. peer group.
  134.  
  135. Particularly antisocial crackers have a vandalistic streak, and delete
  136. filestores, crash machines, and trash running processes in pursuit of
  137. their "kicks".
  138.  
  139. The term is also widely used to describe a person who breaks copy
  140. protection software in microcomputer applications software in order to
  141. keep or distribute free copies.
  142.  
  143. On USENET, calling someone a "hacker" is usually a statement that said
  144. person holds a great deal of knowledge and expertise in the field of
  145. computing, and is someone who is capable of exercising this expertise
  146. with great finesse.  For a more detailed definition, readers are
  147. referred to the Jargon File [Raymond].
  148.  
  149. In the "real world", various media people have taken the word "hacker"
  150. and coerced it into meaning the same as "cracker" - this usage
  151. occasionally appears on USENET, with disastrous and confusing results.
  152.  
  153. Posters to the security newsgroups should note that they currently risk
  154. a great deal of flamage if they use the word "hacker" in place of
  155. "cracker" in their articles.
  156.  
  157. NB: nowhere in the above do I say that crackers cannot be true hackers.
  158. It's just that I don't say that they are...
  159.  
  160. Q.3 What is "security through obscurity"
  161.  
  162. Security Through Obscurity (STO) is the belief that a system of any sort
  163. can be secure so long as nobody outside of its implementation group is
  164. allowed to find out anything about its internal mechanisms.  Hiding
  165. account passwords in binary files or scripts with the presumption that
  166. "nobody will ever find it" is a prime case of STO.
  167.  
  168. STO is a philosophy favoured by many bureaucratic agencies (military,
  169. governmental, and industrial), and it used to be a major method of
  170. providing "pseudosecurity" in computing systems.
  171.  
  172. Its usefulness has declined in the computing world with the rise of open
  173. systems, networking, greater understanding of programming techniques, as
  174. well as the increase in computing power available to the average person.
  175.  
  176. The basis of STO has always been to run your system on a "need to know"
  177. basis.  If a person doesn't know how to do something which could impact
  178. system security, then s/he isn't dangerous.
  179.  
  180. Admittedly, this is sound in theory, but it can tie you into trusting a
  181. small group of people for as long as they live.  If your employees get
  182. an offer of better pay from somewhere else, the knowledge goes with
  183. them, whether the knowledge is replaceable or not.  Once the secret gets
  184. out, that is the end of your security.
  185.  
  186. Nowadays there is also a greater need for the ordinary user to know
  187. details of how your system works than ever before, and STO falls down a
  188. as a result.  Many users today have advanced knowledge of how their
  189. operating system works, and because of their experience will be able to
  190. guess at the bits of knowledge that they didn't "need to know".  This
  191. bypasses the whole basis of STO, and makes your security useless.
  192.  
  193. Hence there is now a need is to to create systems which attempt to be
  194. algorithmically secure (Kerberos, Secure RPC), rather than just
  195. philosophically secure.  So long as your starting criteria can be met,
  196. your system is LOGICALLY secure.
  197.  
  198. "Shadow Passwords" (below) are sometimes dismissed as STO, but this is
  199. incorrect, since (strictly) STO depends on restricting access to an
  200. algorithm or technique, whereas shadow passwords provide security by
  201. restricting access to vital data.
  202.  
  203. Q.4 What makes a system insecure?
  204.  
  205. Switching it on.  The adage usually quoted runs along these lines:
  206.  
  207.  "The only system which is truly secure is one which is switched off
  208.  and unplugged, locked in a titanium lined safe, buried in a concrete
  209.  bunker, and is surrounded by nerve gas and very highly paid armed
  210.  guards.  Even then, I wouldn't stake my life on it."
  211.  
  212. (the original version of this is attributed to Gene Spafford)
  213.  
  214. A system is only as secure as the people who can get at it.  It can be
  215. "totally" secure without any protection at all, so long as its continued
  216. good operation is important to everyone who can get at it, assuming all
  217. those people are responsible, and regular backups are made in case of
  218. hardware problems.  Many laboratory PC's quite merrily tick away the
  219. hours like this.
  220.  
  221. The problems arise when a need (such as confidentiality) has to be
  222. fulfilled.  Once you start putting the locks on a system, it is fairly
  223. likely that you will never stop.
  224.  
  225. Security holes manifest themselves in (broadly) four ways:
  226.  
  227. 1) Physical Security Holes.
  228.  
  229. - Where the potential problem is caused by giving unauthorised persons
  230. physical access to the machine, where this might allow them to perform
  231. things that they shouldn't be able to do.
  232.  
  233. A good example of this would be a public workstation room where it would
  234. be trivial for a user to reboot a machine into single-user mode and muck
  235. around with the workstation filestore, if precautions are not taken.
  236.  
  237. Another example of this is the need to restrict access to confidential
  238. backup tapes, which may (otherwise) be read by any user with access to
  239. the tapes and a tape drive, whether they are meant to have permission or
  240. not.
  241.  
  242. 2) Software Security Holes
  243.  
  244. - Where the problem is caused by badly written items of "privledged"
  245. software (daemons, cronjobs) which can be compromised into doing things
  246. which they shouldn't oughta.
  247.  
  248. The most famous example of this is the "sendmail debug" hole (see
  249. bibliography) which would enable a cracker to bootstrap a "root" shell.
  250. This could be used to delete your filestore, create a new account, copy
  251. your password file, anything.
  252.  
  253. (Contrary to popular opinion, crack attacks via sendmail were not just
  254. restricted to the infamous "Internet Worm" - any cracker could do this
  255. by using "telnet" to port 25 on the target machine.  The story behind a
  256. similar hole (this time in EMACS) is described in [Stoll].)
  257.  
  258. New holes like this appear all the time, and your best hopes are to:
  259.  
  260.   a: try to structure your system so that as little software as possible
  261.   runs with root/daemon/bin privileges, and that which does is known to
  262.   be robust.
  263.  
  264.   b: subscribe to a mailing list which can get details of problems
  265.   and/or fixes out to you as quickly as possible, and then ACT when you
  266.   receive information.
  267.  
  268. 3) Incompatible Usage Security Holes
  269.  
  270. - Where, through lack of experience, or no fault of his/her own, the
  271. System Manager assembles a combination of hardware and software which
  272. when used as a system is seriously flawed from a security point of view.
  273. It is the incompatibility of trying to do two unconnected but useful
  274. things which creates the security hole.
  275.  
  276. Problems like this are a pain to find once a system is set up and
  277. running, so it is better to build your system with them in mind.  It's
  278. never too late to have a rethink, though.
  279.  
  280. Some examples are detailed below; let's not go into them here, it would
  281. only spoil the surprise.
  282.  
  283. 4) Choosing a suitable security philosophy and maintaining it.
  284.  
  285. >From: Gene Spafford <spaf@cs.purdue.edu>
  286. >The fourth kind of security problem is one of perception and
  287. >understanding.  Perfect software, protected hardware, and compatible
  288. >components don't work unless you have selected an appropriate security
  289. >policy and turned on the parts of your system that enforce it.  Having
  290. >the best password mechanism in the world is worthless if your users
  291. >think that their login name backwards is a good password! Security is
  292. >relative to a policy (or set of policies) and the operation of a system
  293. >in conformance with that policy.
  294.  
  295. Q.5 What tools are there to aid security?
  296.  
  297. 1) "COPS"
  298.  
  299. Managed by Dan Farmer, this is a long established suite of shell scripts
  300. which forms an extensive security testing system; There is a rudimentary
  301. password cracker, and routines to check the filestore for suspicious
  302. changes in setuid programs, others to check permissions of essential
  303. system and user files, and still more to see whether any system software
  304. behaves in a way which could cause problems.
  305.  
  306. The software comes in two versions - one written in Perl and one
  307. (largely equivalent) written in shell scripts.  The latest version is
  308. very up-to-date on Unix Security holes.
  309.  
  310. 2) "Crack" (+ "UFC").
  311.  
  312. Written by Alec Muffett, this is a program written with one purpose in
  313. mind: to break insecure passwords.  It is probably the most efficent and
  314. friendly password cracker that is publically available, with the ability
  315. to let the user to specify precisely how to form the words to use as
  316. guesses at users passwords.
  317.  
  318. It also has an inbuilt networking capability, allowing the load of
  319. cracking to be spread over as many machines as are available on a
  320. network, and it is supplied with an optimised version of the Unix crypt()
  321. algorithm.
  322.  
  323. An even faster version of the crypt() algorithm, "UFC" by Michael Glad,
  324. is freely available on the network, and the latest versions of UFC and
  325. Crack are compatible and can be easily hooked together.
  326.  
  327. 3) NPasswd (Clyde Hoover) & Passwd+ (Matt Bishop)
  328.  
  329. These programs are written to redress the balance in the password
  330. cracking war.  They provide replacements for the standard "passwd"
  331. command, but prevent a user from selecting passwords which are easily
  332. compromised by programs like Crack.
  333.  
  334. Several versions of these programs are available on the network, hacked
  335. about to varying degrees in order to provide compatibility for System V
  336. based systems, NIS/YP, shadow password schemes, etc.  The usual term for
  337. this type of program is a 'fascist' password program.
  338.  
  339. 4) "Shadow" - a Shadow Password Suite
  340.  
  341. This program suite (by John F Haugh II) is a set of program and function
  342. replacements (compatible with most Unixes) which implements shadow
  343. passwords, ie: a system where the plaintext of the password file is
  344. hidden from all users except root, hopefully stopping all password
  345. cracking attempts at source.  In combination with a fascist passwd
  346. frontend, it should provide a good degree of password file robustness.
  347.  
  348. >From: jfh@rpp386.lonestar.org (John F. Haugh II)
  349. >Shadow does much more than hide passwords.  It also provides for
  350. >terminal access control, user and group administration, and a few
  351. >other things which I've forgotten.  There are a dozen or more
  352. >commands in the suite, plus a whole slew of library functions.
  353.  
  354. 5) TCP Wrappers (Wietse Venema)
  355.  
  356. These are programs which provide a front-end filter to many of the
  357. network services which Unix provides by default.  If installed, they can
  358. curb otherwise unrestricted access to potential dangers like incoming
  359. FTP/TFTP, Telnet, etc, and can provide extra logging information, which
  360. may be of use if it appears that someone is trying to break in.
  361.  
  362. 6) SecureLib
  363.  
  364. >From: phil@pex.eecs.nwu.edu (William LeFebvre)
  365. >You may want to add a mention of securelib, a security enhancer
  366. >available for SunOS version 4.1 and higher.
  367.  
  368. >Securelib contains replacement routines for three kernel calls:
  369. >accept(), recvfrom(), recvmsg().  These replacements are compatible with
  370. >the originals, with the additional functionality that they check the
  371. >Internet address of the machine initiating the connection to make sure
  372. >that it is "allowed" to connect.  A configuration file defines what
  373. >hosts are allowed for a given program.  Once these replacement routines
  374. >are compiled, they can be used when building a new shared libc library.
  375. >The resulting libc.so can then be put in a special place.  Any program
  376. >that should be protected can then be started with an alternate
  377. >LD_LIBRARY_PATH.
  378.  
  379. 7) SPI
  380.  
  381. >From: Gene Spafford <spaf@cs.purdue.edu>
  382. >Sites connected with the Department of Energy and some military
  383. >organizations may also have access to the SPI package.  Interested (and
  384. >qualified) users should contact the CIAC at LLNL for details.
  385.  
  386. >SPI is a screen-based administrator's tool that checks configuration
  387. >options, includes a file-change (integrity) checker to monitor for
  388. >backdoors and viruses, and various other security checks.  Future
  389. >versions will probably integrate COPS into the package.  It is not
  390. >available to the general public, but it is available to US Dept of
  391. >Energy contractors and sites and to some US military sites.  A version
  392. >does or will exist for VMS, too.  Further information on availabilty can
  393. >be had from the folks at the DoE CIAC.
  394.  
  395. Q.6 Isn't it dangerous to give cracking tools to everyone?
  396.  
  397. That depends on your point of view.  Some people have complained that
  398. giving unrestricted public access to programs like COPS and Crack is
  399. irresponsible because the "baddies" can get at them easily.
  400.  
  401. Alternatively, you may believe that the really bad "baddies" have had
  402. programs like this for years, and that it's really a stupendously good
  403. idea to give these programs to the good guys too, so that they may check
  404. the integrity of their system before the baddies get to them.
  405.  
  406. So, who wins more from having these programs freely available? The good
  407. guys or the bad ? You decide, but remember that less honest tools than
  408. COPS and Crack tools were already out there, and most of the good guys
  409. didn't have anything to help.
  410.  
  411. Q.7 Where can I get these tools?
  412.  
  413. COPS:
  414.  
  415.   V1.04, available for FTP from cert.sei.cmu.edu in pub/cops and
  416.   archive.cis.ohio-state.edu in pub/cops.
  417.  
  418. Crack/UFC:
  419.  
  420.   Crack v4.1f and UFC Patchlevel 1.  Available from any major USENET
  421.   archive (eg: ftp.uu.net) in volume 28 of comp.sources.misc.
  422.  
  423. NPasswd:
  424.  
  425.   Currently suffering from being hacked about by many different people.
  426.   Version 2.0 is in the offing, but many versions exist in many
  427.   different configurations. Will chase this up with authors - AEM
  428.  
  429. Passwd+:
  430.  
  431.   "alpha version, update 3" - beta version due soon.  Available from
  432.   dartmouth.edu as pub/passwd+.tar.Z
  433.  
  434. Shadow:
  435.  
  436.   This is available from the comp.sources.misc directory at any major
  437.   USENET archive (see entry for Crack)
  438.  
  439. TCP Wrappers:
  440.  
  441.   Available for anonymous FTP:
  442.  
  443.     cert.sei.cmu.edu: pub/network_tools/tcp_wrapper.shar
  444.     ftp.win.tue.nl: pub/security/log_tcp.shar.Z
  445.  
  446. Securelib:
  447.  
  448.   The latest version of securelib is available via anonymous FTP from the
  449.   host "eecs.nwu.edu".  It is stored in the file "pub/securelib.tar".
  450.  
  451. Q.8 Why and how do systems get broken into?
  452.  
  453. This is hard to answer definitively.  Many systems which crackers break
  454. into are only used as a means of entry into yet more systems; by hopping
  455. between many machines before breaking into a new one, the cracker hopes
  456. to confuse any possible pursuers and put them off the scent.  There is
  457. an advantage to be gained in breaking into as many different sites as
  458. possible, in order to "launder" your connections.
  459.  
  460. Another reason may be psychological: some people love to play with
  461. computers and stretch them to the limits of their capabilities.
  462.  
  463. Some crackers might think that it's "really neat" to hop over 6 Internet
  464. machines, 2 gateways and an X.25 network just to knock on the doors of
  465. some really famous company or institution (eg: NASA, CERN, AT+T, UCB).
  466. Think of it as inter-network sightseeing.
  467.  
  468. This view is certainly appealing to some crackers, and certainly leads
  469. to both the addiction and self-perpetuation of cracking.
  470.  
  471. As to the "How" of the question, this is again a very sketchy area.  In
  472. universities, it is extremely common for computer account to be passed
  473. back and forth between undergraduates:
  474.  
  475.   "Mary gives her account password to her boyfriend Bert at another
  476.   site, who has a friend Joe who "plays around on the networks".  Joe
  477.   finds other crackable accounts at Marys site, and passes them around
  478.   amongst his friends..." pretty soon, a whole society of crackers is
  479.   playing around on the machines that Mary uses.
  480.  
  481. This sort of thing happens all the time, and not just in universities.
  482. One solution is in education.  Do not let your users develop attitudes
  483. like this one:
  484.  
  485.        "It doesn't matter what password I use on _MY_ account,
  486.             after all, I only use it for laserprinting..."
  487.                 - an Aberystwyth Law student, 1991
  488.  
  489. Teach them that use of the computer is a group responsibility.  Make
  490. sure that they understand that a chain is only as strong as it's weak
  491. link.
  492.  
  493. Finally, when you're certain that they understand your problems as a
  494. systems manager and that they totally sympathise with you, configure
  495. your system in such a way that they can't possibly get it wrong.
  496.  
  497. Believe in user education, but don't trust to it alone.
  498.  
  499. Q.9 Who can I contact if I get broken into?
  500.  
  501. If you're connected to the Internet, you should certainly get in touch
  502. with CERT, the Computer Emergency Response Team.
  503.  
  504.     To quote the official blurb:
  505.  
  506. >From: Ed DeHart
  507. > The Computer Emergency Response Team (CERT) was formed by the Defense
  508. > Advanced Research Projects Agency (DARPA) in 1988 to serve as a focal
  509. > point for the computer security concerns of Internet users.  The
  510. > Coordination Center for the CERT is located at the Software Engineering
  511. > Institute, Carnegie Mellon University, Pittsburgh, PA.
  512.  
  513. > Internet E-mail: cert@cert.sei.cmu.edu
  514. > Telephone: 412-268-7090 24-hour hotline:
  515. >     CERT/CC personnel answer 7:30a.m. to 6:00p.m. EST(GMT-5)/EDT(GMT-4),
  516. >     and are on call for emergencies during other hours.
  517.  
  518. ...and also, the umbrella group "FIRST", which mediates between the
  519. incident handling teams themselves...
  520.  
  521. >From: John Wack <wack@csrc.ncsl.nist.gov>
  522. >[...] FIRST is actually a very viable and growing
  523. >organization, of which CERT is a member.  It's not actually true that,
  524. >if you're connected to the Internet, you should call CERT only - that
  525. >doesn't do justice to the many other response teams out there and in the
  526. >process of forming.
  527.  
  528. >NIST is currently the FIRST secretariat; we maintain an anonymous ftp
  529. >server with a directory of FIRST information (csrc.ncsl.nist.gov:
  530. >~/pub/first).  This directory contains a contact file that lists the
  531. >current members and their constituencies and contact information
  532. >(filename "first-contacts").
  533.  
  534. >While CERT is a great organization, other response teams who do handle
  535. >incidents on their parts of the Internet merit some mention as well -
  536. >perhaps mentioning the existence of this file would help to do that in a
  537. >limited space.
  538.  
  539. The file mentioned is a comprehensive listing of contact points per
  540. network for security incidents.  It is too large to reproduce here, I
  541. suggest that the reader obtains a copy for his/her self by the means
  542. given.
  543.  
  544. Q.10 What is a firewall?
  545.  
  546. A (Internet) firewall is a machine which is attached (usually) between
  547. your site and a wide area network.  It provides controllable filtering
  548. of network traffic, allowing restricted access to certain internet port
  549. numbers (ie: services that your machine would otherwise provide to the
  550. network as a whole) and blocks access to pretty well everything else.
  551. Similar machines are available for other network types, too.
  552.  
  553. Firewalls are an effective "all-or-nothing" approach to dealing with
  554. external access security, and they are becoming very popular, with the
  555. rise in Internet connectivity.
  556.  
  557. For more information on these sort of topics, see the Gateway paper by
  558. [Cheswick], below.
  559.  
  560. Q.11 Why shouldn't I use setuid shell scripts?
  561.  
  562. You shouldn't use them for a variety of reasons, mostly involving bugs
  563. in the Unix kernel.  Here are a few of the more well known problems,
  564. some of which are fixed on more recent operating systems.
  565.  
  566. 1) If the script begins "#!/bin/sh" and a link (symbolic or otherwise)
  567. can be made to it with the name "-i", a setuid shell can be immediately
  568. obtained because the script will be invoked: "#!/bin/sh -i", ie: an
  569. interactive shell.
  570.  
  571. 2) Many kernels suffer from a race condition which can allow you to
  572. exchange the shellscript for another executable of your choice between
  573. the times that the newly exec()ed process goes setuid, and when the
  574. command interpreter gets started up.  If you are persistent enough, in
  575. theory you could get the kernel to run any program you want.
  576.  
  577. 3) The IFS bug: the IFS shell variable contains a list of characters to
  578. be treated like whitespace by a shell when parsing command names.  By
  579. changing the IFS variable to contain the "/" character, the command
  580. "/bin/true" becomes "bin true".
  581.  
  582. All you need do is export the modified IFS variable, install a command
  583. called "bin" in your path, and run a setuid script which calls
  584. "/bin/true".  Then "bin" will be executed whilst setuid.
  585.  
  586. If you really must write scripts to be setuid, either
  587.  
  588.   a) Put a setuid wrapper in "C" around the script, being very careful
  589.   to reset IFS and PATH to something sensible before exec()ing the
  590.   script.  If your system has runtime linked libraries, consider the
  591.   values of the LD_LIBRARY_PATH also.
  592.  
  593.   b) Use a scripting language like Perl which has a safe setuid
  594.   facility, and is proactively rabid about security.
  595.  
  596. - but really, it's safest not to use setuid scripts at all.
  597.  
  598. Q.12 Why shouldn't I leave "root" permanently logged on the console?
  599.  
  600. Using a 'smart' terminal as console and leaving "/dev/console" world
  601. writable whilst "root" is logged in is a potential hole.  The terminal
  602. may be vulnerable to remote control via escape sequences, and can be
  603. used to 'type' things into the root shell.  The terminal type can
  604. usually be obtained via the "ps" command.
  605.  
  606. Various solutions to this can be devised, usually by giving the console
  607. owner and group-write access only , and then using the setgid mechanism
  608. on any program which has need to output to the console (eg: "write").
  609.  
  610. Q.13 Why shouldn't I create Unix accounts with null passwords?
  611.  
  612. Creating an unpassworded account to serve any purpose is potentially
  613. dangerous, not for any direct reason, but because it can give a cracker
  614. a toehold.
  615.  
  616. For example, on many systems you will find a unpassworded user "sync",
  617. which allows the sysman to sync the disks without being logged in.  This
  618. appears to be both safe and innocuous.
  619.  
  620. The problem with this arises if your system is one of the many which
  621. doesn't do checks on a user before authorising them for (say) FTP.  A
  622. cracker might be able to connect to your machine for one of a variety of
  623. FTP methods, pretending to be user "sync" with no password, and then
  624. copy your password file off for remote cracking.
  625.  
  626. Although there are mechanisms to prevent this sort of thing happening in
  627. most modern vesions of Unix, to be totally secure requires an in-depth
  628. knowledge of every package on your system, and how it deals with the
  629. verification of users.  If you can't be sure, it's probably better not
  630. to leave holes like this around.
  631.  
  632. Another hole that having null-password accounts opens up is the
  633. possibility (on systems with runtime linked libraries) of spoofing
  634. system software into running your programs as the "sync" user, by
  635. changing the LD_LIBRARY_PATH variable to a library of your own devising,
  636. and running "login -p" or "su" to turn into that user.
  637.  
  638. Q.14 What security holes are associated with X-windows (and other WMs)?
  639.  
  640. Lots, some which affect use of X only, and some which impact the
  641. security of the entire host system.
  642.  
  643. I would prefer not to go into too much detail here, and would refer any
  644. reader reader looking for detailed information to the other FAQ's in
  645. relevant newsgroups.  (comp.windows.*)
  646.  
  647. One point I will make is that X is one of those packages which often
  648. generates "Incompatible Usage" security problems, for instance the
  649. ability for crackers to run xsessions on hosts under accounts with no
  650. password (eg: sync), if it is improperly set up.  Read the question
  651. about unpassworded accounts in this FAQ.
  652.  
  653. Q.15 What security holes are associated with NFS?
  654.  
  655. Lots, mostly to do with who you export your disks to, and how.  The
  656. security of NFS relies heavily upon who is allowed to mount the files
  657. that a server exports, and whether they are exported read only or not.
  658.  
  659. The exact format for specifying which hosts can mount an exported
  660. directory varies between Unix implementations, but generally the
  661. information is contained within the file "/etc/exports".
  662.  
  663. This file contains a list of directories and for each one, it has a
  664. series of either specific "hosts" or "netgroups" which are allowed to
  665. NFS mount that directory.  This list is called the "access list".
  666.  
  667. The "hosts" are individual machines, whilst "netgroups" are combinations
  668. of hosts and usernames specified in "/etc/netgroup".  These are meant to
  669. provide a method of finetuning access.  Read the relevant manual page
  670. for more information about netgroups.
  671.  
  672. The exports file also contains information about whether the directory
  673. is to be exported as read-only, read-write, and whether super-user
  674. access is to be allowed from clients which mount that directory.
  675.  
  676. The important point to remember is that if the access list for a
  677. particular directory in /etc/exports contains:
  678.  
  679. 1) <nothing>
  680.  
  681. Your directory can be mounted by anyone, anywhere.
  682.  
  683. 2) <a specific hostname>
  684.  
  685. Your directory can be mounted by anyone permitted to run the mount
  686. command at hostname.  This might not be a trustworthy person; for
  687. instance, if the machine is a PC running NFS, it could be anyone.
  688.  
  689. 3) <a netgroup name>
  690.  
  691. If the netgroup:
  692.  
  693. a) is empty, anyone can mount your directory, from anywhere.
  694.  
  695. b) contains "(,,)", anyone can mount your directory, from anywhere.
  696.  
  697. c) contains the name of a netgroup which is empty or contains "(,,)",
  698.    anyone can mount your directory, from anywhere.
  699.  
  700. d) contains "(hostname,,)", anyone on the named host who is permissioned
  701.    to mount files can mount your directory.
  702.  
  703. e) contains "(,username,)", the named user can mount your directory,
  704.    from anywhere.
  705.  
  706. 4) <a word which is neither a hostname or a netgroup>
  707.  
  708. If you meant to export the directory to the host "athena" but actually
  709. type "ahtena", the word "ahtena" is taken as a netgroup name, is found
  710. to be an empty netgroup, and thus the directory can be mounted by
  711. anyone, anywhere.
  712.  
  713. So, if you aren't careful about what you put into /etc/exports and
  714. /etc/netgroup you could find that a user with a PC could
  715.  
  716.   a) mount your mainframe filestore as a network disk
  717.   b) edit your /etc/passwd or .rhosts or /etc/hosts.equiv ...
  718.   c) log into your mainframe as another user, possibly "root"
  719.  
  720. Disclaimer: The above information may not be true for all platforms
  721. which provide an NFS serving capability, but is true for all of the ones
  722. in my experience (AEM).  It should be noted that the SAFE way to create
  723. an "empty" netgroup entry is:
  724.  
  725.                ngname (-,-,-)
  726.  
  727. Which is a netgroup which matches no-one on no-host on no-NIS-domain.
  728.  
  729. [ I am STILL working on PC NFS packages / ethics at the moment - AEM ]
  730.  
  731. Q.16 How can I generate safe passwords?
  732.  
  733. You can't.  The key word here is GENERATE.  Once an algorithm for
  734. creating passwords is specified using upon some systematic method, it
  735. merely becomes a matter of analysing your algorithm in order to find
  736. every password on your system.
  737.  
  738. Unless the algorithm is very subtle, it will probably suffer from a very
  739. low period (ie: it will soon start to repeat itself) so that either:
  740.  
  741.   a) a cracker can try out every possible output of the password
  742.   generator on every user of the system, or
  743.  
  744.   b) the cracker can analyse the output of the password program,
  745.   determine the algorithm being used, and apply the algorithm to other
  746.   users to determine their passwords.
  747.  
  748. A beautiful example of this (where it was disastrously assumed that a
  749. random number generator could generate an infinite number of random
  750. passwords) is detailed in [Morris & Thompson].
  751.  
  752. The only way to get a reasonable amount of variety in your passwords
  753. (I'm afraid) is to make them up.  Work out some flexible method of your
  754. own which is NOT based upon:
  755.  
  756.   1) modifying any part of your name or name+initials
  757.   2) modifying a dictionary word
  758.   3) acronyms
  759.   4) any systematic, well-adhered-to algorithm whatsoever
  760.  
  761. For instance, NEVER use passwords like:
  762.  
  763. alec7         - it's based on the users name (& it's too short anyway)
  764. tteffum        - based on the users name again
  765. gillian        - girlfiends name (in a dictionary)
  766. naillig        - ditto, backwards
  767. PORSCHE911     - it's in a dictionary
  768. 12345678     - it's in a dictionary (& people can watch you type it easily)
  769. qwertyui     - ...ditto...
  770. abcxyz        - ...ditto...
  771. 0ooooooo    - ...ditto...
  772. Computer     - just because it's capitalised doesn't make it safe
  773. wombat6     - ditto for appending some random character
  774. 6wombat     - ditto for prepending some random character
  775. merde3        - even for french words...
  776. mr.spock     - it's in a sci-fi dictionary
  777. zeolite     - it's in a geological dictionary
  778. ze0lite     - corrupted version of a word in a geological dictionary
  779. ze0l1te     - ...ditto...
  780. Z30L1T3     - ...ditto...
  781.  
  782. I hope that these examples emphasise that ANY password derived from ANY
  783. dictionary word (or personal information), modified in ANY way,
  784. constitutes a potentially guessable password.
  785.  
  786. For more detailed information in the same vein, you should read the
  787. APPENDIX files which accompany Crack [Muffett].
  788.  
  789. Q.17 Why are passwords so important?
  790.  
  791. Because they are the first line of defence against interactive attacks
  792. on your system.  It can be stated simply: if a cracker cannot interact
  793. with your system(s), and he has no access to read or write the
  794. information contained in the password file, then he has almost no
  795. avenues of attack left open to break your system.
  796.  
  797. This is also why, if a cracker can at least read your password file (and
  798. if you are on a vanilla modern Unix, you should assume this) it is so
  799. important that he is not able to break any of the passwords contained
  800. therein.  If he can, then it is also fair to assume that he can (a) log
  801. on to your system and can then (b) break into "root" via an operating
  802. system hole.
  803.  
  804. Q.18 How many possible passwords are there?
  805.  
  806. Most people ask this at one time or another, worried that programs like
  807. Crack will eventually grow in power until they can do a completely
  808. exhaustive search of all possible passwords, to break into a specific
  809. users' account - usually root.
  810.  
  811. If (to simplify the maths) we make the assumptions that:
  812.  
  813.   1) Valid passwords are created from a set of 62 chars [A-Za-z0-9]
  814.   2) Valid passwords are to be between 5 and 8 chars long
  815.  
  816. Then the size of the set of all valid passwords is: (in base 62)
  817.  
  818.                    100000 +
  819.                   1000000 +
  820.                  10000000 +
  821.                 100000000 =
  822.                 ---------
  823.                 111100000    (base 62)
  824.  
  825. A figure which is far too large to usefully undertake an exhaustive
  826. search with current technologies.  Don't forget, however, that passwords
  827. CAN be made up with even more characters then this; you can use <space>,
  828. all the punctuation characters, and symbols (~<>|\#$%^&*) too.  If you
  829. can use some of all the 95 non-control characters in passwords, this
  830. increases the search space for a cracker to cover even further. 
  831.  
  832. However, it's still MUCH more efficient for a cracker to get a copy of
  833. "Crack", break into ANY account on the system (you only need one), log
  834. onto the machine, and spoof his way up to root priviledges via operating
  835. systems holes. 
  836.  
  837. Take comfort from these figures.  If you can slam the door in the face
  838. of a potential crackers with a robust password file, you have sealed
  839. most of the major avenues of attack immediately.
  840.  
  841. Q.19 Where can I get more information?
  842.  
  843. Books:
  844.  
  845. [Kochan & Wood]
  846. Unix System Security
  847.  
  848. A little dated for modern matters, but still a very good book on the
  849. basics of Unix security.
  850.  
  851. [Spafford & Garfinkel]
  852. Practical Unix Security
  853.  
  854. This wonderful book is a worthy successor to the above, and covers a
  855. wide variety of the topics which the Unix (and some non Unix) system
  856. manager of the 90's will come across.
  857.  
  858. >From: Gene Spafford <spaf@cs.purdue.edu>
  859. >Mention appendix E in "Practical Unix Security."
  860.  
  861. Okay: Appendix E contains an extensive bibliography with even more
  862. pointers to security books than this FAQ contains.
  863.  
  864. [Stoll]
  865. The Cuckoo's Egg
  866.  
  867. A real life 1980's thriller detailing the tracing of a cracker from
  868. Berkeley across the USA and over the Atlantic to Germany.  An excellent
  869. view from all points: a good read, informative about security, funny,
  870. and a good illustration of the cracker psyche.  Contains an excellent
  871. recipie for chocolate chip cookies.
  872.  
  873. A videotape of the "NOVA" (PBS's Science Program on TV) episode that
  874. explained/reenacted this story is available from PBS Home Video.  They
  875. have a toll-free 800 number within North America.
  876.  
  877. I believe that this program was aired on the BBC's "HORIZON" program,
  878. and thus will be available from BBC Enterprises, but I haven't checked
  879. this out yet - AEM
  880.  
  881. [Raymond] (Ed.)
  882. The New Hackers Dictionary/Online Jargon File
  883.  
  884. A mish-mash of history and dictionary definitions which explains why it
  885. is so wonderful to be a hacker, and why those crackers who aren't
  886. hackers want to be called "hackers".  The Jargon File version is
  887. available online - check an archie database for retails.  Latest
  888. revision: 2.99.
  889.  
  890. [Gasser]
  891. Building a Secure Computer System.
  892.  
  893. By Morrie Gasser, and van Nostrand Reinhold; explains what is required
  894. to build a secure computer system.
  895.  
  896. [Rainbow Series] (Especially the "Orange Book")
  897.  
  898. >From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  899. >The "Rainbow Series" consists of about 25 volumes.  Some of the
  900. >more interesting ones are:
  901. >
  902. >    The "Orange Book", or Trusted Computer Systems Evaluation
  903. >        Criteria, which describes functional and assurance
  904. >        requirements for computer systems
  905. >
  906. >    Trusted Database Interpretation, which talks both about
  907. >        trusted databases and building systems out of trusted
  908. >        components
  909. >
  910. >    Trusted Network Interpretation, which (obviously) talks
  911. >        about networked systems
  912. >
  913. >A (possibly) complete list is:
  914. >    -- Department of Defense Trusted Computer System Evaluation Criteria
  915. >       (TCSEC), aka the "Orange Book"
  916. >    -- Computer Security Subsystem Interpretation of the TCSEC
  917. >    -- Trusted Data Base Management System Interpretation of the TCSEC
  918. >    -- Trusted Network Interpretation of the TCSEC
  919. >    -- Trusted Network Interpretation Environments Guideline -- Guidance
  920. >       for Applying the Trusted Network Interpretation
  921. >    -- Trusted Unix Working Group (TRUSIX) Rationale for Selecting
  922. >       Access Control List Features for the Unix System
  923. >    -- Trusted Product Evaulations -- A Guide for Vendors
  924. >    -- Computer Security Requirements -- Guidance for Applying the DoD
  925. >       TCSEC in Specific Environments
  926. >    -- Technical Rationale Behind CSC-STD-003-85: Computer Security
  927. >       Requirements
  928. >    -- Trusted Product Evaluation Questionnaire
  929. >    -- Rating Maintenance Phase -- Program Document
  930. >    -- Guidelines for Formal Verification Systems
  931. >    -- A Guide to Understanding Audit in Trusted Systems
  932. >    -- A Guide to Understanding Trusted Facility Management
  933. >    -- A Guide to Understanding Discretionary Access Control in Trusted
  934. >       Systems
  935. >    -- A Guide to Understanding Configuration Management in Trusted Systems
  936. >    -- A Guide to Understanding Design Documentation in Trusted Systems
  937. >    -- A Guide to Understanding Trusted Distribution in Trusted Systems
  938. >    -- A Guide to Understanding Data Remanence in Automated Information
  939. >       Systems
  940. >    -- Department of Defense Password Management Guideline
  941. >    -- Glossary of Computer Security Terms
  942. >    -- Integrity in Automated Information Systems
  943. >
  944. >You can get your own copy (free) of any or all of the books by
  945. >writing or calling:
  946. >
  947. >    INFOSEC Awareness Office
  948. >    National Computer Security Centre
  949. >    9800 Savage Road
  950. >    Fort George G. Meade, MD  20755-6000
  951. >    Tel +1 301 766-8729
  952. >
  953. >If you ask to be put on the mailing list, you'll get a copy of each new
  954. >book as it comes out (typically a couple a year).
  955.  
  956. >From: kleine@fzi.de (Karl Kleine)
  957. >I was told that this offer is only valid for US citizens ("We only send
  958. >this stuff to a US postal address").  Non-US people have to PAY to get
  959. >hold of these documents.  They can be ordered from NTIS, the National
  960. >Technical Information Service:
  961. >    NTIS,
  962. >    5285 Port Royal Rd,
  963. >    Springfield VA 22151,
  964. >    USA
  965. >    order dept phone: +1-703-487-4650, fax +1-703-321-8547
  966.  
  967. >From: Ulf Kieber <kieber@de.tu-dresden.inf.freia>
  968. >just today I got my set of the Rainbow Series.
  969. >
  970. >There are three new books:
  971. > -- A Guide to Understanding Trusted Recovery in Trusted Systems
  972. > -- A Guide to Understanding Identification and Authentication in Trusted
  973. >    Systems
  974. > -- A Guide to Writing the Security Features User's Guide for Trusted Systems
  975. >
  976. >They also shipped
  977. > -- Advisory Memorandum on Office Automation Security Guideline
  978. >issued by NTISS.  Most of the books (except three or four) can also be
  979. >purchased from
  980. >
  981. >    U.S. Government Printing Office
  982. >    Superintendent of Documents
  983. >    Washington, DC 20402        phone: (202) 783-3238
  984. >
  985. >>-- Integrity in Automated Information Systems
  986. >THIS book was NOT shipped to me--I'm not sure if it is still in
  987. >the distribution.
  988.  
  989. >From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  990. >...
  991. >The ITSEC (Information Technology Security Evaluation Criteria) is a
  992. >harmonized document developed by the British, German, French, and
  993. >Netherlands governments.  It separates functional and assurance
  994. >requirements, and has many other differences from the TCSEC.
  995. >
  996. >You can get your copy (again, free/gratis) by writing:
  997. >
  998. >    Commission of the European Communities
  999. >    Directorate XIII/F
  1000. >    SOG-IS Secretariat
  1001. >    Rue de la Loi 200
  1002. >    B-1049 BRUSSELS
  1003. >    Belgium
  1004.  
  1005. Also note that NCSC periodically publish an "Evaluated Products List"
  1006. which is the definitive statement of which products have been approved
  1007. at what TCSEC level under which TCSEC interpretations.  This is useful
  1008. for separating the output of marketdroids from the truth.
  1009.  
  1010. Papers:
  1011.  
  1012. [Morris & Thompson]
  1013. Password Security, A Case History
  1014.  
  1015. A wonderful paper, first published in CACM in 1974, which is now often
  1016. to found in the Unix Programmer Docs supplied with many systems.
  1017.  
  1018. [Curry]
  1019. Improving the Security of your Unix System.
  1020.  
  1021. A marvellous paper detailing the basic security considerations every
  1022. Unix systems manager should know.  Available as "security-doc.tar.Z"
  1023. from FTP sites (check an Archie database for your nearest site.)
  1024.  
  1025. [Klein]
  1026. Foiling the Cracker: A Survey of, and Improvements to, Password Security.
  1027.  
  1028. A thorough and reasoned analysis of password cracking trends, and the
  1029. reasoning behind techniques of password cracking.  Your nearest copy
  1030. should be easily found via Archie, searching for the keyword "Foiling".
  1031.  
  1032. [Cheswick]
  1033. The Design of a Secure Internet Gateway.
  1034.  
  1035. Great stuff.  It's research.att.com:/dist/Secure_Internet_Gateway.ps
  1036.  
  1037. [Cheswick]
  1038. An Evening With Berferd: in which a Cracker is Lured, Endured and Studied.
  1039.  
  1040. Funny and very readable, somewhat in the style of [Stoll] but more
  1041. condensed.  research.att.com:/dist/berferd.ps
  1042.  
  1043. [Bellovin89]
  1044. Security Problems in the TCP/TP Protocol Suite.
  1045.  
  1046. A description of security problems in many of the protocols widely used
  1047. in the Internet.  Not all of the discussed protocols are official
  1048. Internet Protocols (i.e.  blessed by the IAB), but all are widely used.
  1049. The paper originally appeared in ACM Computer Communications Review,
  1050. Vol 19, No 2, April 1989.  research.att.com:/dist/ipext.ps.Z
  1051.  
  1052. [Bellovin91]
  1053. Limitations of the Kerberos Authentication System
  1054.  
  1055. A discussion of the limitations and weaknesses of the Kerberos
  1056. Authentication System.  Specific problems and solutions are presented.
  1057. Very worthwhile reading.  Available on research.att.com via anonymous
  1058. ftp, originally appeared in ACM Computer Communications Review but the
  1059. revised version (identical to the online version, I think) appeared in
  1060. the Winter 1991 USENIX Conference Proceedings.
  1061.  
  1062. [Muffett]
  1063. Crack documentation.
  1064.  
  1065. The information which accompanies Crack contains a whimsical explanation
  1066. of password cracking techniques and the optimisation thereof, as well as
  1067. an incredibly long and silly diatribe on how to not choose a crackable
  1068. password.  A good read for anyone who needs convincing that password
  1069. cracking is _really easy_.
  1070.  
  1071. [Farmer]
  1072. COPS
  1073.  
  1074. Read the documentation provided with COPS.  Lots of hints and
  1075. philosophy.  The where, why and how behind the piece of security
  1076. software that started it all.
  1077.  
  1078. [CERT]
  1079. maillists/advisories/clippings
  1080.  
  1081. CERT maintains archives of useful bits of information that it gets from
  1082. USENET and other sources.  Also archives of all the security
  1083. "advisories" that it has posted (ie: little messages warning people that
  1084. there is a hole in their operating system, and where to get a fix)
  1085.  
  1086. [OpenSystemsSecurity]
  1087.  
  1088. A notorious (but apparently quite good) document, which has been dogged
  1089. by being in a weird postscript format.
  1090.  
  1091. >From: amesml@monu1.cc.monash.edu.au (Mark L. Ames)
  1092.  
  1093. >I've received many replies to my posting about Arlo Karila's paper,
  1094. >including the news (that I and many others have missed) that a
  1095. >manageable postscript file and text file are available via anonymous ftp
  1096. >from ajk.tele.fi (131.177.5.20) in the directory PublicDocuments.
  1097.  
  1098. These are all available for FTP browsing from "cert.sei.cmu.edu".
  1099.  
  1100. [RFC-1244]
  1101. Site Security Handbook
  1102.  
  1103. RFC-1244 : JP Holbrook & JK Reynolds (Eds.) "The Site Security Handbook"
  1104. covering incident handling and prevention.  July 1991; 101 pages
  1105. (Format: TXT=259129 bytes), also called "FYI 8"
  1106.  
  1107. [USENET]
  1108. comp.virus: for discussions of virii and other nasties, with a PC bent.
  1109. comp.unix.admin: for general administration issues
  1110. comp.unix.<platform>: for the hardware/software that YOU use.
  1111. comp.protocols.tcp-ip: good for problems with NFS, etc.
  1112.  
  1113. Q.20 How silly can people get?
  1114.  
  1115. This section (which I hope to expand) is a forum for learning by
  1116. example; if people have a chance to read about real life (preferably
  1117. silly) security incidents, it will hopefully instill in readers some of
  1118. the zen of computer security without the pain of experiencing it.
  1119.  
  1120. If you have an experience that you wish to share, please send it to the
  1121. editors.  It'll boost your karma no end.
  1122.  
  1123. ---------------------------------------------------------------------------
  1124. aem@aber.ac.uk: The best story I have is of a student friend of mine
  1125. (call him Bob) who spent his industrial year at a major computer
  1126. manufacturing company.  In his holidays, Bob would come back to college
  1127. and play AberMUD on my system.
  1128.  
  1129. Part of Bob's job at the company involved systems management, and the
  1130. company was very hot on security, so all the passwords were random
  1131. strings of letters, with no sensible order.  It was imperative that the
  1132. passwords were secure (this involved writing the random passwords down
  1133. and locking them in big, heavy duty safes).
  1134.  
  1135. One day, on a whim, I fed the MUD persona file passwords into Crack as a
  1136. dictionary (the passwords were stored plaintext) and then ran Crack on
  1137. our systems password file.  A few student accounts came up, but nothing
  1138. special.  I told the students concerned to change their passwords - that
  1139. was the end of it.
  1140.  
  1141. Being the lazy guy I am, I forgot to remove the passwords from the Crack
  1142. dictionary, and when I posted the next version to USENET, the words went
  1143. too.  It went to the comp.sources.misc moderator, came back over USENET,
  1144. and eventually wound up at Bob's company.  Round trip: ~10,000 miles.
  1145.  
  1146. Being a cool kinda student sysadmin dude, Bob ran the new version of
  1147. Crack when it arrived.  When it immediately churned out the root
  1148. password on his machine, he damn near fainted...
  1149.  
  1150. The moral of this story is: never use the same password in two different
  1151. places, and especially on untrusted systems (like MUDs).
  1152.  
  1153. --
  1154.  aem@aber.ac.uk aem@uk.ac.aber aem%aber@ukacrl.bitnet mcsun!uknet!aber!aem
  1155.    - send (cryptographic) comp.sources.misc material to: aem@aber.ac.uk -
  1156.  
  1157.  
  1158.